﻿<?php
include("../config/header.php");
?>
<script type='text/javascript'>
	document.title = 'html代码在线调试 —— 在线工具';
</script>
<div class="container">
	<div class="panel panel-primary">
		<div class="panel-heading"><h3 class="panel-title">html代码在线调试</h3></div>
	</div>
	<div class="form-group">
		<label>输入源码：</label>
		<textarea id="t2" rows="12" cols="100" class="form-control"></textarea>
	</div>
	<div class="form-group" align="center";>
		<button onclick="runCode();" class="button button-rounded button-flat-action">运 行 代 码</button>
		<button onclick="lonewolf_Empty();" class="button button-rounded button-flat-highlight">清 空 内 容</button>
	</div>
</div>
<script>
function runCode(){
	win=open("about:blank");
	win.document.write(t2.value);
	win.document.close()
}
function lonewolf_Empty(){
	document.getElementById('t2').value='';
}
</script>

<?php
include("../config/footer.php");
?>
